package com.woniu108.carService.commos.exception.orderProduct;

/**
 * @author LY
 */

public enum OrderProductExceptionCode {
    ORDER_PRODUCT_DELETED_NO_SELECT(6001,"订单已删除，用户无法查询"),
    ORDER_PRODUCT_USER_NOT_POWER(6002,"非用户订单，无权操作"),
    ORDER_PRODUCT_NO_CANCEL(6003,"订单不能取消"),
    ORDER_PRODUCT_USER_NOT_UPDATE_ADDRESS(6004,"已发货，不能修改地址"),
    ORDER_PRODUCT_RE_ADDRESS_NO_EXISTED(6005,"地址不存在"),
    ORDER_PRODUCT_NOT_EXISTED(6006,"订单不存在"),
    ORDER_PRODUCT_DELETED(6007,"订单已删除，无法操作"),
    ORDER_PRODUCT_USER_NO_HAVE_ADDRESS(6008,"地址非用户本人所有"),
    ORDER_NULL(6009,"订单不存在"),
    CART_NOT(6010,"购物车不存在"),
    ORDER_PRODUCT_CART_NOT_THIS_PRODUCT(6011,"购物车中不存在商品"),
    ORDER_PRODUCT_TICKET_TIME_OVERED(6012,"优惠卷已过期"),
    ORDER_PRODUCT_TICKET_NO_ACCORD_PRICE(6013,"金额不符合优惠条件"),
    ORDER_PRODUCT_VIP_NO_ACCORD(6014,"用户vip等级尚不满足"),
    ORDER_PRODUCT_NUMBER_NO_HAVE(6015,"商品余量不足"),
    ORDER_PRODUCT_USER_NO_PAY(6016,"用户不能支付不属于自己的订单"),
    ORDER_PAYED(6017,"订单已支付或已取消或已删除"),
    ORDER_PRODUCT_NO_DIRECT_REFUND(6018,"订单状态不能直接退款"),
    ORDER_PRODUCT_NO_REPEAT_REFUND(6019,"订单已退款或订单已申请退款，请等待"),
    ORDER_NO_APPLY(6020,"订单未发起申请或已退款"),
    ORDER_PRODUCT_REFUND_PRICE_SUPER(6021,"退款金额超出"),
    ORDER_REFUND_NO_WAIT(6022,"申请已处理或申请已取消"),
    ORDER_REFUND_HAVE_APPLY(6023,"退款申请已存在"),
    ORDER_REFUND_NO_EXISTED(6024,"订单不存在"),
    REFUND_FINISHED(6025,"已退款"),
    ORDER_SCORE_USED(6026,"已评分"),
    ORDER_CANCELED(6027,"订单已取消"),
    ORDER_NOT_FINISHED(6028,"订单状态不能确认完成"),
    ORDER_FINISHED(6029,"订单已完成，不必反复操作");

    private Integer code;
    private String message;

    OrderProductExceptionCode() {
    }

    OrderProductExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
